<?php if (count($advs) > 0): ?>
    <div class="l_top">Đối tác</div>
    <div class="slider3">
        <?php
        foreach ($advs as $adv):
            $url_path = $adv->url_path == "#Click vào đây để thay đổi đường dẫn ảnh" ? "#" : $adv->url_path;
            ?>
        <div class="slide">
            <a href="<?php echo $url_path; ?>">
                <img title="<?php echo $adv->title; ?>" alt="<?php echo $adv->title; ?>" src="/images/advs/<?php echo $adv->image_name; ?>"/>
            </a>
        </div>
        <?php endforeach;?>
    </div>
<?php endif; ?>